<?php

namespace app\common\model;

use think\Model;

class Meter extends Model
{
    // 表名
    protected $name = 'meter';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    public function project()
    {
        return $this->belongsTo('MeterProject', 'project_id', 'id');
    }
}
